#ifndef ZDIALOG_H
#define ZDIALOG_H

#include <QWidget>
#include <QDialog>
#include <QMouseEvent>
#include <QPainter>
#include <qmath.h>

class ZDialog : public QDialog
{
    Q_OBJECT
public:
    explicit ZDialog(QWidget *parent = nullptr);

    ~ZDialog();
protected:
    void mousePressEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    virtual void paintEvent(QPaintEvent *event);

private:
    QPoint move_point; //移动的距离
    bool mouse_press; //按下鼠标左键

signals:

public slots:
};

#endif // ZDIALOG_H
